package dicebot.apps;

import dicebot.abstracts.MessageHandler;
import dicebot.filene.Main;
import net.mamoe.mirai.event.events.GroupMessageEvent;

public class Reflector {
	
	public static void initialize() {
		Main.HANDLERS.add(new MessageHandler() {
			@Override
			public boolean handle(GroupMessageEvent e) {
				if (e.getMessage().contentToString().startsWith(".")) {							
					e.getGroup().sendMessage(e.getMessage());
					return true;
				} else {							
					return false;
				}
			}
		});
	}

}
